//
//  BaseDottedView.m
//  LingQianZhu
//
//  Created by 谢英泽 on 2016/12/14.
//  Copyright © 2016年 谢英泽. All rights reserved.
//

#import "BaseDottedView.h"

@implementation BaseDottedView

- (void)drawRect:(CGRect)rect {
    
    CGContextRef context =UIGraphicsGetCurrentContext();
    CGContextBeginPath(context);
    CGContextSetLineWidth(context, 1.0);
    CGContextSetStrokeColorWithColor(context, [UIColor colorWithRed:0.5296 green:0.5296 blue:0.5296 alpha:0.5].CGColor);
    CGFloat lengths[] = {5,5};
    CGContextSetLineDash(context, 0, lengths,2);
    CGContextMoveToPoint(context, 10.0, 2.0);
    CGContextAddLineToPoint(context, rect.size.width,2.0);
    CGContextStrokePath(context);
    CGContextClosePath(context);
    
}

@end
